package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Phone    string `json:"phone" gorm:"type:char(11);comment:'手机号'"`
	Password string `json:"password" gorm:"type:varchar(32);comment:'密码'"`
}
type UserInfo struct {
	gorm.Model
	UserId      int    `json:"user_id" gorm:"type:int(11);comment:'用户Id'"`
	HeaderImage string `json:"header_image" gorm:"type:varchar(300);comment:'头像'"`
	Name        string `json:"name" gorm:"type:varchar(30);comment:'昵称'"`
	Happy       string `json:"happy" gorm:"type:varchar(100);comment:'生日'"`
	Sex         string `json:"sex" gorm:"type:enum('男','女');comment:'性别'"`
	Info        string `json:"info" gorm:"type:varchar(200);comment:'介绍'"`
}
